<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>show_cell (Table::RTable)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File rtable.rb, line 239</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show_cell</span> <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>,<span class="ruby-identifier">also</span>=<span class="ruby-keyword kw">true</span>,<span class="ruby-identifier">nonewline</span>=<span class="ruby-keyword kw">false</span>
    <span class="ruby-identifier">code</span>,<span class="ruby-identifier">str</span> = <span class="ruby-identifier">show_helper</span> <span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>
    <span class="ruby-identifier">print</span> <span class="ruby-identifier">code</span>;<span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>
    <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@also</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-node">&quot;#{x}:#{y}&quot;</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">also</span>
      <span class="ruby-ivar">@also</span>[<span class="ruby-node">&quot;#{x}:#{y}&quot;</span>].<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span>
        <span class="ruby-identifier">code</span>,<span class="ruby-identifier">str</span> = <span class="ruby-identifier">show_helper</span> <span class="ruby-identifier">x</span>,<span class="ruby-identifier">c</span>
        <span class="ruby-identifier">print</span> <span class="ruby-identifier">code</span>;<span class="ruby-identifier">print</span> <span class="ruby-identifier">str</span>
     }
    <span class="ruby-keyword kw">end</span>
    <span class="ruby-identifier">print</span> <span class="ruby-value str">&quot;\n&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">nonewline</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>